import app from '@/app';

//app.model()

function registryModels(){
    let modules = require.context('@/models',true,/\.js$/);

    modules.keys().forEach(item => {
        let model = modules(item).default;
        app.model(model)
    })
}


export default registryModels;
